package com.isoft.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 值机柜台显示信息表-存储值机区域信息
 * @TableName CHECKIN_DISPLAY
 */
@TableName(value ="CHECKIN_DISPLAY")
@Data
public class CheckinDisplay implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long DISPLAY_ID;

    /**
     *
     */
    private Long FLIGHT_ID;

    /**
     * 值机柜台及区域显示1(国内/地区)
     */
    private String FCDP;

    /**
     * 值机柜台及区域显示2(混合航班国际)
     */
    private String MCDP;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CheckinDisplay other = (CheckinDisplay) that;
        return (this.getDISPLAY_ID() == null ? other.getDISPLAY_ID() == null : this.getDISPLAY_ID().equals(other.getDISPLAY_ID()))
                && (this.getFLIGHT_ID() == null ? other.getFLIGHT_ID() == null : this.getFLIGHT_ID().equals(other.getFLIGHT_ID()))
                && (this.getFCDP() == null ? other.getFCDP() == null : this.getFCDP().equals(other.getFCDP()))
                && (this.getMCDP() == null ? other.getMCDP() == null : this.getMCDP().equals(other.getMCDP()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDISPLAY_ID() == null) ? 0 : getDISPLAY_ID().hashCode());
        result = prime * result + ((getFLIGHT_ID() == null) ? 0 : getFLIGHT_ID().hashCode());
        result = prime * result + ((getFCDP() == null) ? 0 : getFCDP().hashCode());
        result = prime * result + ((getMCDP() == null) ? 0 : getMCDP().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", DISPLAY_ID=").append(DISPLAY_ID);
        sb.append(", FLIGHT_ID=").append(FLIGHT_ID);
        sb.append(", FCDP=").append(FCDP);
        sb.append(", MCDP=").append(MCDP);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}